-
Notifications
You must be signed in to change notification settings - Fork 621
migrate analytics params from clientId/accountId to teamId/projectId #6331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate analytics params from clientId/accountId to teamId/projectId #6331
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
634098b to
6cfefc1
Compare
6cfefc1 to
38f9dbd
Compare
38f9dbd to
35b44f5
Compare

closes: CORE-751
TL;DR
Migrated analytics API endpoints from v1 to v2, replacing client/account IDs with team/project IDs.
What changed?
AnalyticsQueryParamsV2type and consolidated intoAnalyticsQueryParamsv1tov2pathsisProjectActiveto return granular status for different servicesHow to test?
Why make this change?
This change standardizes the analytics API interface by moving away from legacy identifiers (client/account IDs) to the new team/project ID structure, providing more consistent and maintainable analytics data access across the dashboard.
PR-Codex overview
This PR focuses on refactoring the analytics code to replace
clientIdandaccountIdwithteamIdandprojectIdacross various components and APIs, enhancing the organization and clarity of the analytics data handling.Detailed summary
in-app.ts,fetch-analytics.ts, andecosystem.ts.InAppWalletAnalyticsandInAppWalletsHeaderto useteamIdandprojectId.AnalyticsQueryParamsinterface to removeclientIdandaccountId.TransactionsChartsand related functions to acceptAnalyticsQueryParams.teamIdandprojectIdinstead ofclientId.isProjectActiveto return detailed active status.getEcosystemWalletUsagefunction for fetching ecosystem wallet stats.